home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 682 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.0 KB

  1. From: Chris Herborth <cherborth@semprini.waterloo-rdp.on.ca>
  2. Subject: MiNT 1.09 - setenv patch
  3. Date:     Sat, 4 Dec 1993 11:49:10 -0500
  4. Mime-Version: 1.0
  5.  
  6. MiNT up to 1.09 can't handle setenv properly (IMHO) from the mint.cnf
  7. file...  if you have:
  8.  
  9. setenv BLAH a b c
  10.  
  11. $BLAH will be a; the rest of the line is ignored.  Using:
  12.  
  13. setenv BLAH "a b c"
  14.  
  15. is no good, because $BLAH will be "a b c"... it includes the quotes.  I
  16. told Eric about this a while ago on GEnie (just before he started work
  17. at Atari! :-), but it looks like it was lost in the shuffle.
  18.  
  19. The following patch to main.c fixes the mint.cnf setenv command... it
  20. will go to the end of the line to allow:
  21.  
  22. setenv BLAH a b c
  23.  
  24. to work properly.  An example of when you'd want this is the options
  25. environment variable for the POV-Ray ray-tracer, or the $RNINIT
  26. environment variable for 'rn' (I like to use "} " as my quote line in
  27. rn).
  28.  
  29. The patch is relative to the "plain" 1.09 sources; if you've been
  30. following all of the 1.09 patches, it'll miss the patch by about three
  31. lines... it's fairly trivial to apply it by hand.
  32.  
  33. Does anyone know if 1.10 is going to happen soon, or is Eric too busy
  34. with Jaguar stuff?
  35.  
  36. ---------- 8< ----------
  37. *** main.ori    Fri Aug  6 08:58:20 1993
  38. --- main.c    Fri Dec  3 21:44:40 1993
  39. ***************
  40. *** 1349,1355 ****
  41.       }
  42.   
  43.       arg2 = line;
  44. !     while (*line && *line != ' ') line++;
  45.       if (*line) {
  46.           *line = 0;
  47.       }
  48. --- 1349,1359 ----
  49.       }
  50.   
  51.       arg2 = line;
  52. !     /* This next line must be changed for sane parsing of environment */
  53. !     /* vars with spaces...  POV-Ray's is an example.                  */
  54. !     /* cherborth@semprini.waterloo-rdp.on.ca                          */
  55. !     /* while (*line && *line != ' ') line++;        <-- original line */
  56. !     while (*line && *line != '\r' && *line != '\n') line++;
  57.       if (*line) {
  58.           *line = 0;
  59.       }
  60. ---------- 8< ----------
  61. -- 
  62. -------------------========================================-------------------
  63.                                          cherborth@semprini.waterloo-rdp.on.ca
  64.                                                                 Chris Herborth
  65.